POV-Ray : Newsgroups : povray.general : Help with IDENTIFIER and MACRO needed. : Help with IDENTIFIER and MACRO needed. Server Time
7 Aug 2024 05:13:12 EDT (-0400)
  Help with IDENTIFIER and MACRO needed.  
From: Andrew Cocker
Date: 15 Nov 2001 18:38:16
Message: <3bf451e8@news.povray.org>
Hi,

I've come across a problem that I don't know how to resolve. If I set up a
spline
eg.

#declare MySpline=
spline {
linear_spline
0, <0,0,0>
1, <1,1,1>
}

 why is it that the following doesn't work, and is there a workaround?

#declare SplinePoint=MySpline(clock); //Gives error

Also (this may be the same problem in a different guise), why does the
following not work, and is there a workaround for this too?

#macro MyMacro (Point1, Point2, Num)
#local New=Point2-Point1+Num;
#end

MyMacro (MySpline(clock),<3,3,3>,6) //Gives error

Thanks in advance,

Andy Cocker


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.